Internet Archive BookReader - Algebraic invariants